package grid;

public class Location {
	private int x;
	private int y;
	
	public Location(int x,int y) {
		this.x = x;
		this.y = y;
	}
	public int getX() {
		return x;
	}
	public int getY() {
		return y;
	}
	public Location plus(Location l) {
		return new Location(getX()+l.getX(),getY()+l.getY());
	}
	public Location minus(Location l) {
		return new Location(getX()-l.getX(),getY()-l.getY());
	}
	public String toString() {
		return "("+x+","+y+")";
	}
}
